package com.suray.basic.wcs.utils;

public class LockFloor extends Floor {
    /**
     * 占用者(Object对象)
     */
    private Object lockedBy;

    public LockFloor(Floor sourceFloor, Object lockedBy) {
        super(sourceFloor);
        this.lockedBy = lockedBy;
    }

    public Object getLockedBy() {
        return lockedBy;
    }

    public void setLockedBy(Object lockedBy) {
        this.lockedBy = lockedBy;
    }

    @Override
    public boolean equals(Object o) {
        return super.equals(o);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public String toString() {
        return super.toString() + "层";
    }
}
